package com.aseo.business;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.aseo.model.dao.Dao;
import com.aseo.model.entity.Supervisor;

//@Service
public class SupervisorManager {

	@Resource  
	private Dao dao;  

	public Supervisor newSupervisor() {  
		return new Supervisor();  
	}  
	  
	public void persist(Supervisor supervisor) {  
		dao.persist(supervisor);
	}  
	  
	public List<Supervisor> getSupervisores() {  
		final List<Supervisor> list = dao.find(Supervisor.class);  
	    return list;
	}

}